package com.liner.homework.first;


public class Fish extends Animal implements Swim {
    public Fish(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(age + "岁的" + color+ name + "吃虾米");
    }

    @Override
    public void swim() {
        System.out.println(age + "岁的" + color +name + "正在仰泳");
    }

    @Override
    public String toString() {
        return "Fish{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                '}';
    }



}
